<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
%>

<!--  2010-07-06 根据学科组查询任命状态 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<title>按学科组查询岗位安排</title>
	<link href="<%=path%>/css/index_css.css" rel="stylesheet" type="text/css" />
	<script src="<%=path%>/js/resizeIframe.js" type="text/javascript"></script>
	<script src="<%=path%>/dwr/engine.js"></script>
    <script src="<%=path%>/dwr/util.js"></script>
    <script src="<%=path%>/dwr/interface/shiyueDwr.js"></script>
	<script type="text/javascript">
		window.onload = function(){
		load();
      	
      	resizeIframe();
        
          
        
      }
      
      //获取年度下拉列表框
       function getAllYearCallBack(yearMap) {
        DWRUtil.addOptions("year", yearMap);
        if('${year}'!="")
    	{
    	  document.getElementById('year').value="${year}";
    	}else if('${currentYear}'!="")
    	{
    	  document.getElementById('year').value="${currentYear}";
    	}
    } 
    
    function tdClick(url)
    {
      window.location.href=url;
    }
    
    function load()
    {
    	shiyueDwr.getAllYear(getAllYearCallBack);
    }
    </script>

  </head>
  <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2" align="left" class="f_5">岗位安排查询</td><!--  2011-03-31 任命状态查询 改 岗位安排查询 -->
  </tr>
  <tr>
    <td height="1" colspan="2" bgcolor="#9DD12E"></td>
  </tr>
  <tr>
    <td colspan="2" align="left" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="left" valign="bottom" background="<%=path%>/images/sywesp_24.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90" align="left"><table width="90" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="1" align="left" valign="bottom" bgcolor="#CBCBCB"></td>
                <td align="center" background="<%=path%>/images/sywesp_18.gif" class="f_6" onclick="tdClick('<%=path %>/findClassByTeacherGradeAndClassAction.action?year=${currentYear}');" style="cursor:pointer;">按教师查询</td>
                <td width="1" height="31" align="right" valign="bottom" bgcolor="#CBCBCB"></td>
              </tr>
            </table></td>
            <td width="5" align="left">&nbsp;</td>
            <td width="130" align="left"><table width="130" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="1" align="left" valign="bottom" bgcolor="#CBCBCB"></td>
                <td align="center" background="<%=path%>/images/sywesp_25.gif" class="f_9">按组织结构查询</td>
                <td width="1" height="31" align="right" valign="bottom" bgcolor="#CBCBCB"><br></td>
              </tr>
            </table></td>
            <td width="5" align="left">&nbsp;</td>
            <td width="110" align="left"><table width="110" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="1" align="left" valign="bottom" bgcolor="#CBCBCB"><br></td>
                <td align="center" background="<%=path%>/images/sywesp_18.gif" class="f_6" onclick="tdClick('<%=path %>/roleToTeaGradeAndClassAction.action?year=${currentYear}');" style="cursor:pointer;">按角色查询</td>
                <td width="1" height="31" align="right" valign="bottom" bgcolor="#CBCBCB"><br></td>
              </tr>
            </table></td>
            <td align="left">&nbsp;</td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td align="left" valign="top" class="tb_8 border_2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="25" align="left" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="89%" align="left">
	              <form action="findTeacherByStaffRoomGradeAndClassAction.action" method="post">
	                按年度查询：
                  <label>
                  <select name="year" id="year" onchange="tdClick('findTeacherByStaffRoomGradeAndClassAction.action?year='+this.value);">
                  </select>
                  </label>
                  &nbsp;组织：
                  <input name="orgName" type="text" size="10" value=""/>
                  <input type="submit" value="查询">
                  </form> 
                  </td>
                <td width="11%" align="right" style="display: none;"><img src="<%=path%>/images/nv_hidden.gif" width="14" height="14" /> <a href="#">下载</a></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td align="left" valign="top">
             <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DCDCDC">
              <tr>
                <td width="12%" height="30" align="left" bgcolor="#DBE9F6" class="f_4">&nbsp;&nbsp;组织结构</td>
                <td align="left" bgcolor="#DBE9F6" class="f_4">&nbsp;&nbsp;教师(角色)</td>
                </tr>
                <c:forEach items="${requestScope.orgList}" var="org">
                  <tr>
                    <td bgcolor="#FFFFFF" class="f_4" height="30" style="border-bottom:solid #DCDCDC 0px;" nowrap="nowrap"> &nbsp;&nbsp;${org.name }(教研组)</td>
                    <td bgcolor="#FFFFFF" align="left" height="30" valign="bottom" style="border-bottom:solid #DCDCDC 0px;">
                    <c:forEach items="${requestScope.porRelationList}" var="porRelation">
                      <c:if test="${porRelation.id.organization.organizationId eq org.organizationId}">
                       <br>
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                        <td height="30" align="left" valign="top" bgcolor="#FFFFFF" style="border-bottom:solid #DCDCDC 1px;">&nbsp;&nbsp;
                        	${porRelation.id.user.name }(${porRelation.id.role.name })
                        </td>
                        </tr>
                        </table>
                        </c:if>
                      
                    </c:forEach>
                    </td>
                  </tr>
                </c:forEach>
                
                <c:forEach items="${requestScope.orgList1}" var="org1">
                  <tr>
                    <td bgcolor="#FFFFFF" class="f_4" height="30" nowrap="nowrap"> &nbsp;&nbsp;${org1.name }(部门)</td>
                    <td bgcolor="#FFFFFF" align="left" height="30" valign="bottom">
                    <c:forEach items="${requestScope.porRelationList}" var="porRelation">
                      <c:if test="${porRelation.id.organization.organizationId eq org1.organizationId}">
                  <br>
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                        <td height="30" align="left" valign="top" bgcolor="#FFFFFF" style="border-bottom:solid #DCDCDC 1px;">&nbsp;&nbsp;
                        	${porRelation.id.user.name }(${porRelation.id.role.name })
                        </td>
                        </tr>
                        </table>
                        
                      </c:if>
                    </c:forEach>
                    </td>
                  </tr>
                </c:forEach>
            </table>
           </td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
  </body>
</html>
